<?xml version="1.0"?>
<component name="org.nuxeo.binary.metadata.contribs.override">

  <require>org.nuxeo.binary.metadata.contribs</require>

  <extension point="command" target="org.nuxeo.ecm.platform.commandline.executor.service.CommandLineExecutorComponent">

    <command enabled="true" name="exiftool-read-taglist">
      <commandLine>exiftool</commandLine>
      <parameterString>-m -q -q -G -json #{tagList} #{inFilePath}</parameterString>
      <installationDirective>You need to install exiftool</installationDirective>
    </command>

    <command enabled="true" name="exiftool-read">
      <commandLine>exiftool</commandLine>
      <parameterString>-m -q -q -G -json #{inFilePath}</parameterString>
      <installationDirective>You need to install exiftool</installationDirective>
    </command>

    <command enabled="true" name="exiftool-write">
      <commandLine>exiftool</commandLine>
      <parameterString>-m -q -q -G -overwrite_original #{tagList} #{inFilePath}</parameterString>
      <installationDirective>You need to install exiftool</installationDirective>
    </command>

    <!-- Since 7.3 -->
    <command enabled="true" name="exiftool-read-taglist-noprefix">
      <commandLine>exiftool</commandLine>
      <parameterString>-m -q -q -json #{tagList} #{inFilePath}</parameterString>
      <installationDirective>You need to install exiftool</installationDirective>
    </command>

    <!-- Since 7.3 -->
    <command enabled="true" name="exiftool-read-noprefix">
      <commandLine>exiftool</commandLine>
      <parameterString>-m -q -q -json #{inFilePath}</parameterString>
      <installationDirective>You need to install exiftool</installationDirective>
    </command>

    <!-- Since 7.3 -->
    <command enabled="true" name="exiftool-write-noprefix">
      <commandLine>exiftool</commandLine>
      <parameterString>-m -q -q -overwrite_original #{tagList} #{inFilePath}</parameterString>
      <installationDirective>You need to install exiftool</installationDirective>
    </command>

  </extension>

</component>
